package com.hejia.bulbul.entity;

import java.util.HashMap;

public class JSONParam {
	private String name;
	private String value;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public static HashMap<String, String> convertToMap(JSONParam[] params) {
		HashMap<String, String> map = new HashMap<String, String>();
		for (int i = 0; i < params.length; i++) {
			map.put(params[i].getName(), params[i].getValue());
		}
		return map;
	}
}
